/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-09-12 10:40:26
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-09-29 21:10:03
 * @FilePath: \郭招娣\hou\app\router.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;

  // ***************************文章***************************************//

  // 客户端 
  router.get('/articleImg', controller.articleLists.articleImg);

  // 获取标签
  router.get('/tagLists', controller.articleLists.tagLists);
  // 获取分类
  router.get('/classLists', controller.articleLists.classLists);

  // 搜索
  router.post('/search', controller.articleLists.search);

  // 搜索
  router.post('/zan', controller.articleLists.zan);
  // 知识小册
  router.get('/knowledge', controller.articleLists.knowledge);
  // 登录
  router.post('/login', controller.articleLists.login);
  // 第三方
  router.get('/api/auth', controller.articleLists.san);
};
